package cn.hchaojie.javase.day05;

public class Point {
	// 类属性的一个特点：会有默认的初始值。数值类型的默认是0
	private double x = 1;
	private double y = 1;
	
	boolean flag;		// 默认是false
	
	int[] array;
	String str;			// 对象类型，默认值是null
	
	// 无参构造器
	public Point() {
		x = 2;
		y = 2;
	}

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}
}
